//
//  FKMemberChildHeader.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/30.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKMemberChildHeader.h"

@interface FKMemberChildHeader ()

@property (nonatomic, weak) UILabel *leftLabel;
@property (nonatomic, weak) UILabel *centerLabel;
@property (nonatomic, weak) UILabel *rightLabel;

@end

@implementation FKMemberChildHeader

- (void)setupSubviews
{
    [super setupSubviews];
    
    UILabel *leftLabel = [UILabel fk_labelWithFont:fk_adjustFont(15) textColor:fkColor333333 text:@"成员"];
    [self.contentView addSubview:leftLabel];
    self.leftLabel = leftLabel;
    
    UILabel *centerLabel = [UILabel fk_labelWithFont:fk_adjustFont(15) textColor:fkColor333333 text:@"上级"];
    [self.contentView addSubview:centerLabel];
    self.centerLabel = centerLabel;
    
    UILabel *rightLabel = [UILabel fk_labelWithFont:fk_adjustFont(15) textColor:fkColor333333 text:@"加入时间"];
    [self.contentView addSubview:rightLabel];
    self.rightLabel = rightLabel;
    
    [leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(12);
        make.centerY.offset(0);
    }];
    [centerLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.centerY.offset(0);
    }];
    [rightLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-12);
        make.centerY.offset(0);
    }];
}

@end
